using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FollowingPlayer : MonoBehaviour
{
    public GameObject Player;
    public bool isShooting=false;
    // Start is called before the first frame update
    void Start()
    {
        gameObject.SetActive(false);
    }

    // Update is called once per frame
    void Update()
    {
        transform.position = Player.transform.position;
        if (isShooting)
        {
            gameObject.SetActive(true);
        }
    }
    public void SetTrue()
    {
        isShooting = true;
    }public void SetFalse()
    {
        isShooting = false;
    }

}
